<?php
namespace Orm\WinningLog;
class WinningLogList extends \Base\BaseOrmObjectLists{

    // for function keyBy()
    protected $key_by;

    function __construct()
    {
        parent::__construct();
        $this->dbo = new \Orm\WinningLog\WinningLogModel();
        $this->filter = '`is_del` = 0';
        $this->order ='';
    }

    function newObj()
    {
        return new \Orm\WinningLog\WinningLogClass();
    }

    /**
     * keyBy
     * @param  string $field
     * @return obj
     * @author imjcw
     * @date   2016-11-08
     */
    public function keyBy($field)
    {
        $this->key_by = $field;
        return $this;
    }
}